### Function Description

Create public script

### Request Parameters

#### Interface parameters

| Fields          | Type   | Required | Description                                                                       |
|-----------------|--------|----------|-----------------------------------------------------------------------------------|
| name            | string | yes      | Public script name                                                                |
| description     | string | no       | Public script description                                                         |
| script_language | int    | yes      | Script language:1 - shell, 2 - bat, 3 - perl, 4 - python, 5 - powershell, 6 - sql |
| content         | string | yes      | Script content, requiring Base64 encoding                                         |
| version         | string | yes      | Version                                                                           |
| version_desc    | string | no       | Version Description                                                               |

### Example of request

```json
{
    "name": "public script test",
    "description": "public script test",
    "script_language": "1",
    "content": "IyEvYmluL2Jhc2gKbHM=",
    "version": "1.0"
}
```

### Example of responses

```json
{
    "code": 0,
    "result": true,
    "data": {
        "id": 1000018,
        "script_id": "4537fb49ec0840a1b91cef4179c99f9c",
        "name": "public script test",
        "script_language": 1,
        "content": "#!/bin/bash\nls",
        "creator": "admin",
        "create_time": 1691739630000,
        "last_modify_user": "admin",
        "last_modify_time": 1691739630000,
        "version": "1.0",
        "status": 0,
        "description": "public script test"
    },
    "job_request_id": "xxx"
}
```

### Response Description

{% include '_generic_response.md.j2' %}

#### data

| Fields           | Type   | Never null | Description                                                                       |
|------------------|--------|------------|-----------------------------------------------------------------------------------|
| id               | long   | yes        | Script version id                                                                 |
| script_id        | string | yes        | Script id                                                                         |
| name             | string | yes        | Script name                                                                       |
| script_language  | int    | yes        | Script language:1 - shell, 2 - bat, 3 - perl, 4 - python, 5 - powershell, 6 - sql |
| content          | string | yes        | Script content                                                                    |
| creator          | string | yes        | Creator                                                                           |
| create_time      | long   | yes        | Created time, Unix timestamp                                                      |
| last_modify_user | string | yes        | Last modify user                                                                  |
| last_modify_time | long   | yes        | Last modified time, Unix timestamp                                                |
| version          | string | yes        | Script version                                                                    |
| version_desc     | string | yes        | Version description                                                               |
| status           | int    | yes        | Script version status (0: Not online, 1: Online, 2: Offline, 3: Disabled)         |
| description      | string | no         | Description                                                                       |
